﻿using System.Diagnostics;
using System.Windows;
using System.Windows.Input;

namespace TestApp
{
    /// <summary>
    /// Window3.xaml 的交互逻辑
    /// </summary>
    public partial class Window3 : Window
    {
        public Window3()
        {
            InitializeComponent();

        }

        private void OnPreviewMouseDown(object sender, MouseButtonEventArgs e)
        {
            Debug.WriteLine("OnPreviewMouseDown 被触发");
            //e.Handled = true; // 注释掉就能看到 MouseDown
        }

        private void OnMouseDown(object sender, MouseButtonEventArgs e)
        {
            Debug.WriteLine("OnMouseDown 被触发");
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            MessageBox.Show("11");
        }
    }
}
